package com.itheima.thread;

public class ThreadDemo01 {
    public static void main(String[] args) {

        MyThread t1 = new MyThread();
        //开启线程
        t1.start();
//        MyThread t2 = new MyThread();
//        t2.start();

        for (int i = 0; i < 100; i++) {
            System.out.println("main"+i);
        }

        //t1线程会和main方法交替执行
    }
}
